using System;
using System.Collections.Generic;
using System.Text;
using DAL;
using Entity;

namespace Business
{
	public class BlueProductBusiness
	{
		#region Generated code
        public static List<BlueProduct> GetBlueProductList()
        {
		    var result = FreshCmsDataAccessProvider.BlueProduct.GetBlueProductList();
		    return result;
        }

		public static List<BlueProduct> GetBlueProductListByPaging(int pageIndex, int pageSize, ref int totalRecord)
        {
		    var result = FreshCmsDataAccessProvider.BlueProduct.GetBlueProductListByPaging(pageIndex, pageSize, ref totalRecord);
		    return result;
        }

        public static BlueProduct GetBlueProductById(int proId)
        {
		    var result = FreshCmsDataAccessProvider.BlueProduct.GetBlueProductById(proId);
            return result;
        }

        public static int InsertBlueProduct(BlueProduct blueProduct)
        {
            var result = FreshCmsDataAccessProvider.BlueProduct.InsertBlueProduct(blueProduct);
            return result;
        }

        public static int UpdateBlueProduct(BlueProduct blueProduct)
        {
            var result = FreshCmsDataAccessProvider.BlueProduct.UpdateBlueProduct(blueProduct);
            return result;
        }

        public static int DeleteBlueProduct(int proId)
        {
            var result = FreshCmsDataAccessProvider.BlueProduct.DeleteBlueProduct(proId);
            return result;
        }
		#endregion
	}
}